Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
C#
1) 2D Graphics
2) ADO Database
3) Class Interface
4) Collections Data Structure
5) Components
6) Data Types
7) Date Time
8) Design Patterns
9) Development Class
10) Event
11) File Stream
12) Generics
13) GUI Windows Form
14) Internationalization
15) Language Basics
16) LINQ
17) Network
18) Office
19) Reflection
20) Regular Expressions
21) Security
22) Services Event
23) Thread
24) Web Services
25) Windows
26) WPF
27) XML
28) XML LINQ
ADO Database
1) Add data to database using SqlDataAdapter
2) Add parameters to SqlCommand to call stored procedure
3) Adding Data
4) ADO NET Binding
5) Async Command Object
6) Between certain dates
7) Bind Database table column to TextBox
8) Bind DataGridView to Array
9) Bind DataSet to DataGrid
10) Bind DataSet to Label
11) Bind DataSet to TextBox
12) Bind List to DataGridView
13) Bind parameters to insert command
14) Bind related tables
15) Bind String array to a TextBox
16) Bind two DataGrids with many to many mapping
17) Binding database table to ListBox and TextBox, link ListBox and TextBox
18) Call a store procedure
19) Call Simple Store Procedure
20) Call the SQL Server AddProduct() store procedure
21) Call the SQL Server AddProduct() stored procedure with SqlCommand
22) Catch Sql command exceptions
23) Causes the the child rows to be nested within the parent rows in the output XML
24) Commit two delete sql command
25) Committed insert
26) Connect to Access database
27) Connect to an Access database file
28) Connect to an Oracle server
29) Connection String
30) Connection to MySql
31) ConnectionReset
32) ConnectionTimeout
33) Connects to a Microsoft Access database
34) Control SqlCommand to return a single row
35) Create Connection
36) Create connection string with SqlConnectionStringBuilder
37) Create database through OdbcCommand
38) Create database through SqlConnection
39) Create DataView through DataTable
40) Create SqlCommand object
41) Create table and populate data
42) Create table through SqlConnection
43) Creating Connection To ODBC
44) Creating Data Tables and Populating Them
45) Creating SQL Connections
46) Custom DataGridView with DataGridViewTextBoxColumn, DataGridViewImageColumn,DataGridViewComboBoxColumn
47) Data Binding 3
48) Data Binding 4
49) Data Source with Generic Collection
50) DataGrid Update
51) DataSet Delete
52) DataSet Read
53) DataSource
54) DataView Binding to TextBox
55) Deal with Multiple Results
56) Deal with multiple Sql error in SqlException
57) Deal with the many to many relation
58) Delete data from database table using SqlDataAdapter
59) Delete data from database using SqlCommand
60) Delete database records through OleDbCommand and verify the results
61) Deleting Data
62) Deleting Data Using SqlCommandBuilder
63) Deleting Data Using SQLStatements
64) Execute aggregate function
65) Execute complicated SQL query
66) Execute multiple SELECT statements using a SqlCommand object and read the results using a SqlDataReader object
67) Execute multiple SELECT statements(select) using a SqlCommand object and read the results using a SqlDataReader object
68) Execute multiple SQL statements(insert) using a SqlCommand object
69) Execute your Sql query
70) Fill a DataGrid
71) Fill Data from database table to ListView
72) Fill data from Database to ListBox
73) Fill data in DateSet to XmlDocument
74) Filter sort based on DataTableCollection
75) Find, filter, and sort DataRow objects
76) Finding Data
77) Finding Rows In DataSet
78) For each row in DataSet, reference the column data by column name
79) Format Data from OleDbDataReader
80) Generate SQL command automatically from SqlCommandBuilder and SqlDataAdapter
81) Get all table names
82) Get column average
83) Get Column data type and name from DataColumn
84) Get column index from SqlDataReader
85) Get count value from a select query
86) Get max column value
87) Get result data from SqlDataReader by type
88) Get Return from SQL Server store procedure
89) Get row count by ExecuteScalar
90) Get row count from SqlCommand
91) Get specified column data type and column name from OleDbSchemaTable
92) Get table Schema
93) GetDataSources
94) GetFactoryClasses, GetFactory
95) Geting Table column data type
96) control the command behavior to return a single row
97) execute a SELECT statement using a SqlCommand object
98) execute a TableDirect command
99) perform a SELECT statement and store the returned rows in a DataSet object
100) read a table schema
101) read column values as C# types using the Get methods
102) use an OleDbConnection object to connect to an Access database
103) use an OleDbConnection object to connect to an Oracle database
104) use the ExecuteScalar() method to run a SELECT statement that returns a single value
105) use the InfoMessage event
106) use the StateChange event
107) write and read XML files
108) Illustrates how to call a SQL Server stored procedure
109) Illustrates how to perform a SELECT statement using ADO NET
110) Illustrates how to perform INSERT, UPDATE, and DELETE statements using ADO NET
111) Illustrates how to specify and use a relationship between two DataTable objects
112) Illustrates how to write and read XML files
113) Illustrates simple stored procedures with unnamed parameters in the query
114) Illustrates the use of a DataView object to filter and sort rows
115) Illustrates the use of adding, modifying, and deleting a row in a DataTable object and synchronizing those changes with the.t
116) Illustrates the use of transactions
117) Illustrates transaction processing
118) InitialCatalog
119) Insert Data Using SqlCommandBuilder
120) Inserte Data Using SQL Statements
121) IntegratedSecurity
122) LoadBalanceTimeout
123) Map database column name to OleDbDataReader
124) Map table and column names
125) MaxPoolSize
126) MinPoolSize
127) Modify DataTable
128) More than one Relations
129) Move DataRow in a DataTable
130) Navigate the binded data using BindingManagerBase
131) New SqlConnectionStringBuilder(conString)
132) Obtain an XML Document from a SQL Server Query
133) ODBC connection
134) Odbc Error Handler
135) Ole db connection string for SQL Server
136) OleDbConnection
137) OleDbConnection Connect to DB2
138) OleDbConnection connection
139) OleDbConnection string
140) OleDbTransaction rollback
141) On row updating and updated event
142) Open the XML file and read into a DataSet
143) Oracle connection string for C#
144) PacketSize
145) Pass parameter to OleDbCommand
146) Pass parameters to OdbcCommand
147) Pass parameters to SqlCommand
148) Persisting A Dataset To An XML File
149) Populate a DataSet object using a SELECT statement
150) Populate a DataSet object using a store procedure
151) Populate a DataSet object with a range of rows from a SELECT statement
152) Populate a DataSet object with multiple DataTable objects
153) Populate a DataSet object with multiple DataTable objects by changing the CommandText property of a DataAdapter objects Selec
154) Populate a DataSet with multiple DataTable objects using multiple SELECT statements
155) Print DataSet out
156) Print DataTable
157) Query more columns and read result set
158) Read column values as C# types using the Get methods
159) Read column values as Sql types using the GetSql methods
160) Read comma separated value into DataSet
161) Read data from DataSet
162) Read data from ole db connection
163) Read data from SqlDataReader
164) Read image data from database and display that image
165) Read query result data from Access database
166) Read query result from OdbcCommand
167) Read query result from OleDbReader
168) Read result set containing all columns
169) Read schema information using the FillSchema() method of a DataAdapter object
170) Read value using OleDbDataReader
171) Reading Access Data
172) Reading An XML File Into A Dataset
173) ReadXml
174) Reference data in OleDbDataReader by column name
175) Reference data in SqlDataReader by column name
176) Refernece column name in SqlDataReader
177) Register two SqlConnection change events
178) Result set info
179) Run an INSERT statement that uses parameters
180) Run an INSERT statement with parameters
181) Scrolling Data Binding
182) Set a savepoint in a transaction
183) Set CommandType and CommandText of IDbConnection
184) Set Data Binding with DataViewManager
185) Set DataSource from DataSet
186) Set SelectCommand
187) Set up DataGridView from DataColumn
188) Set up DataRelation
189) Set up relation between two tables
190) Setting the Nested property of a DataRelation to true
191) Setup Columns for DataGridView
192) Shows the SQL server types, the corresponding Sql types, and the GetSql methods used to read a column as the Sql type
193) Simple DataBinding to TextBox
194) Sql Database Type Utilities
195) SQL SERVER TYPES, COMPATIBLE Sql TYPES, AND GetSql METHODS
196) SQL Spatial Tools
197) Sql String formatter
198) Sql tools
199) SqlConnection
200) SqlConnection connection pool for SQL server
201) SqlConnection connection string
202) SqlConnection properties
203) SqlConnection state change event
204) SqlDataReader Ordinal Indexer
205) SqlException detail info
206) SqlException message
207) Static Helper for executing SQL statements against Oracle Requires the ODP NET provider
208) The use of the Find() and FindRows() methods of a DataView to find DataRowView objects
209) This example will read a csv file into a dataset and save it back when you press button 1
210) Transaction roll back and commit
211) Update A DataSource
212) Update Data Using Commond Builder
213) Update Data Using Sql Statements 2
214) Update Data Using Transactions
215) Update database using the SqlDataAdapter
216) Update table using SqlDataAdapter
217) Use A Data Reader
218) Use DataTable to update table in Database
219) Use DataViewManager to wrap DataSet
220) Use DataViewRowState to filter DataGridView
221) Use DB2Connection class to connect to a DB2 database
222) Use ExecuteNonQuery() to run DDL statements
223) Use ExecuteScalar() to run a SELECT statement that returns a single value
224) Use ExecuteXmlReader() to run a SELECT statement that returns XML
225) Use OdbcCommand to read data in Access database and fill the DataGrid
226) Use of a transaction
227) Use OleDbTransaction
228) Use SQL command to insert data into database table
229) Use SqlCommand to call SQL and insert data to database table
230) Use the ExecuteNonQuery() method to run DDL statements
231) Use the ExecuteNonQuery() method to run INSERT, UPDATE, and DELETE statements
232) Use the ExecuteXmlReader() method to run a SELECT statement that returns XML
233) Use the Find() and FindRows() methods of a DataView to find DataRowView objects
234) Use the GetOrdinal() from DataReader to get the numeric positions of a column
235) Use the GetOrdinal() method of a DataReader object to get the numeric positions of a column
236) Use the Merge() method
237) Use While loop to read query result data from SqlDataReader
238) Using ADO NET Events
239) Using Data Table Mappings
240) Using Datasets
241) Using Multi Tabled Datasets
242) WorkstationId
243) Write data in database table to XML file